module.exports = {
    // create by mongodb automatic (24 [a-f0-9] chars)
    _id: { sample:"5c46d2b0eb4eed8d8f10603c", alias:"ID", description:""},
    // user is valid, true when it's just created
    _invalid: { sample:undefined, alias:"非法", description:""},
    name: { sample:"haelue", alias:"用户名", max:16, description:""},
    phoneno: { sample:"+861592037xxxx", alias:"手机号码", max:32, description:""},
    email: { sample:"aelue@126.com", alias:"电子邮箱", max:32, description:""},
    // password ciphertext of name & password
    password_n: { sample:"xxxxxxxx", alias:"用户名对应密文", description:""},
    // password ciphertext of phoneno & password
    password_p: { sample:"xxxxxxxx", alias:"手机号码对应密文", description:""},
    // password ciphertext of email & password
    password_e: { sample:"xxxxxxxx", alias:"电子邮箱对应密文", description:""},
    nickname: { sample:"土豆囝囝", alias:"昵称", max:16, description:""},
    sex: { sample:"female", alias:"性别", values:['female', 'male'], description:""},
    // 0:alive, 1:freezed, 2:disabled
    status: { sample:0, alias:"状态", description:"0:alive, 1:freezed, 2:disabled"},
    portrait: { sample:"/a/b/do?a=1&b=2", alias:"用户头像", max:128, description:"图片url"},
    signupdate: { sample:1551333801530, alias:"注册时间", description:"date.getTime()"},

    // qq, wx, zhifubao, weibo 用于第三方登录，支付
    qq: { sample:"715685415", alias:"QQ号", max:32, description:""},
    wx: { sample:"haelue", alias:"微信号", max:32, description:""},
    zhifubao: { sample:"xxx", alias:"支付宝号", max:32, description:""},
    weibo: { sample:"xxx", alias:"微博号", max:32, description:""},

    group: { sample:"guest", alias:"用户组", description:""},
    role: { sample:"signuser", alias:"角色", description:""},

    firstname: { sample:"He", alias:"首名(姓)", max:32, description:""},
    lastname: { sample:"Su", alias:"尾名(名)", max:32, description:""},
    birthday: { sample:1551333801530, alias:"生日", description:"日期的getTime()"},
    married: { sample:true, alias:"是否已婚", description:""},
    occupation: { sample:"IT Engineer", alias:"职业", max:32, description:""},
    // split by ';' user-self hobbys, tags
    tags: { sample:"xxx;xxx;xxx", alias:"标签", max:64, description:""},

    country: { sample:"China", alias:"国家", max:16, description:""},
    province: { sample:"Guangdong", alias:"省", max:16, description:""},
    city: { sample:"Guangzhou", alias:"市", max:16, description:""},
    town: { sample:"Guangzhou", alias:"区县", max:16, description:""},
    mailto: { sample:"天河区华阳街xx号xxx", max:128, alias:"邮寄地址", description:""},

    company: { sample:"augur", alias:"公司", max:32, description:""},
    mailtocompany: { sample:"天河区高普路xx号xxx", max:128, alias:"公司邮寄地址", description:""},

    credentialtype: { sample:"身份证", max:16, alias:"证件类型", description:""},
    credentialcode: { sample:"4418xxxxxxxxxxxxxx", max:32, alias:"证件号码", description:""},
};